package selef.xiafan.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author xiafan
 * @version 1.0
 * @date 2021/9/26 10:47
 */
@Entity
@Table(name = "t_comment")
@Data
@JsonIgnoreProperties({"handler","hibernateLazyInitializer"})
public class Comment implements Serializable {
    @Id
    private String commentId;

    private String context;

    private Integer score;

    private Boolean anonymous; // 是否匿名评价（是：true，否：false）
}
